import axios from 'axios'
// let service = axios.create({
//     // baseURL: 'http://192.168.2.106:3000',
//     baseURL: 'https://music.cyrilstudio.top/',
//     // baseURL: 'http://127.0.0.1:8080',
//     timeout: 3000
// })
// export default service

export default function stationService(path, id) {
    id = id || ""
    var config = {
        method: 'get',
        url: `http://121.36.209.69:4533/rest/${path}?u=JensenWang&t=60c93eef40f068e2ce2fa825eac35b77&s=c19b2d&v=1.12.0&c=MyTestApp&f=json&type=newest&id=${id}`,
        headers: {
            // 'Cookie': 'NMTID=00OfmLbC5VEe4Nvf0TxiBwIFJZsICsAAAGDCJbppw; nd-player-4a656e73656e57616e67=9fd7736a-4958-4427-9cbc-891f565d3cff; NMTID=00OfmLbC5VEe4Nvf0TxiBwIFJZsICsAAAGDCJbppw; nd-player-4a656e73656e57616e67=9fd7736a-4958-4427-9cbc-891f565d3cff'
        }
    };
    return axios(config)
}


// var axios = require('axios');

// var config = {
//     method: 'get',
//     url: 'http://121.36.209.69:4533/rest/getAlbumList?u=JensenWang&t=60c93eef40f068e2ce2fa825eac35b77&s=c19b2d&v=1.12.0&c=MyTestApp&f=json&type=newest&id=e67d2b6268c317b3b9b8dd6ffb01fecf',
//     headers: {
//         'Cookie': 'NMTID=00OfmLbC5VEe4Nvf0TxiBwIFJZsICsAAAGDCJbppw; nd-player-4a656e73656e57616e67=9fd7736a-4958-4427-9cbc-891f565d3cff; NMTID=00OfmLbC5VEe4Nvf0TxiBwIFJZsICsAAAGDCJbppw; nd-player-4a656e73656e57616e67=9fd7736a-4958-4427-9cbc-891f565d3cff'
//     }
// };

// axios(config)
//     .then(function(response) {
//         console.log(JSON.stringify(response.data));
//     })
//     .catch(function(error) {
//         console.log(error);
//     });